import requests
def get_header():
    resp=requests.post(url="https://testapi.newdjk.cn/SSOAPI/Doctor/Login",
                  headers={"Content-Type":"application/json"},
                  json={"Mobile": 13322223333, "Type": 2, "Code": "x88888888"})
    # print(resp.json())
    token=resp.json().get("Data").get("Token")
    return token
    # print("t=",token)





if __name__ == '__main__':
    get_header()
